// license-header java merge-point
/**
 * This is only generated once! It will never be overwritten.
 * You can (and have to!) safely modify it by hand.
 */
package com.logistics.entity.order;
/**
 * @see com.logistics.entity.order.WlAccident
 */
public class WlAccidentDaoImpl
    extends com.logistics.entity.order.WlAccidentDaoBase
{
    /**
     * @see com.logistics.entity.order.WlAccidentDao#toWlAccidentVO(com.logistics.entity.order.WlAccident, com.logistics.entity.order.WlAccidentVO)
     */
    public void toWlAccidentVO(
        com.logistics.entity.order.WlAccident source,
        com.logistics.entity.order.WlAccidentVO target)
    {
        // @todo verify behavior of toWlAccidentVO
        super.toWlAccidentVO(source, target);
        // WARNING! No conversion for target.accidentTime (can't convert source.getAccidentTime():java.util.Date to java.util.Date
        // WARNING! No conversion for target.bookTime (can't convert source.getBookTime():java.util.Date to java.util.Date
        // WARNING! No conversion for target.reportTime (can't convert source.getReportTime():java.util.Date to java.util.Date
        // WARNING! No conversion for target.compensateTime (can't convert source.getCompensateTime():java.util.Date to java.util.Date
        // WARNING! No conversion for target.insurerTime (can't convert source.getInsurerTime():java.util.Date to java.util.Date
        // WARNING! No conversion for target.breaker (can't convert source.getBreaker():com.logistics.entity.orga.People to java.lang.String
        // WARNING! No conversion for target.booker (can't convert source.getBooker():com.logistics.entity.orga.People to java.lang.String
        // WARNING! No conversion for target.reporter (can't convert source.getReporter():com.logistics.entity.orga.People to java.lang.String
    }


    /**
     * @see com.logistics.entity.order.WlAccidentDao#toWlAccidentVO(com.logistics.entity.order.WlAccident)
     */
    public com.logistics.entity.order.WlAccidentVO toWlAccidentVO(final com.logistics.entity.order.WlAccident entity)
    {
        // @todo verify behavior of toWlAccidentVO
        return super.toWlAccidentVO(entity);
    }


    /**
     * Retrieves the entity object that is associated with the specified value object
     * from the object store. If no such entity object exists in the object store,
     * a new, blank entity is created
     */
    private com.logistics.entity.order.WlAccident loadWlAccidentFromWlAccidentVO(com.logistics.entity.order.WlAccidentVO wlAccidentVO)
    {
        // @todo implement loadWlAccidentFromWlAccidentVO
        throw new java.lang.UnsupportedOperationException("com.logistics.entity.order.loadWlAccidentFromWlAccidentVO(com.logistics.entity.order.WlAccidentVO) not yet implemented.");

        /* A typical implementation looks like this:
        com.logistics.entity.order.WlAccident wlAccident = this.load(wlAccidentVO.getId());
        if (wlAccident == null)
        {
            wlAccident = com.logistics.entity.order.WlAccident.Factory.newInstance();
        }
        return wlAccident;
        */
    }

    
    /**
     * @see com.logistics.entity.order.WlAccidentDao#wlAccidentVOToEntity(com.logistics.entity.order.WlAccidentVO)
     */
    public com.logistics.entity.order.WlAccident wlAccidentVOToEntity(com.logistics.entity.order.WlAccidentVO wlAccidentVO)
    {
        // @todo verify behavior of wlAccidentVOToEntity
        com.logistics.entity.order.WlAccident entity = this.loadWlAccidentFromWlAccidentVO(wlAccidentVO);
        this.wlAccidentVOToEntity(wlAccidentVO, entity, true);
        return entity;
    }


    /**
     * @see com.logistics.entity.order.WlAccidentDao#wlAccidentVOToEntity(com.logistics.entity.order.WlAccidentVO, com.logistics.entity.order.WlAccident)
     */
    public void wlAccidentVOToEntity(
        com.logistics.entity.order.WlAccidentVO source,
        com.logistics.entity.order.WlAccident target,
        boolean copyIfNull)
    {
        // @todo verify behavior of wlAccidentVOToEntity
        super.wlAccidentVOToEntity(source, target, copyIfNull);
        // No conversion for target.accidentTime (can't convert source.getAccidentTime():java.util.Date to java.util.Date
        // No conversion for target.bookTime (can't convert source.getBookTime():java.util.Date to java.util.Date
        // No conversion for target.reportTime (can't convert source.getReportTime():java.util.Date to java.util.Date
        // No conversion for target.compensateTime (can't convert source.getCompensateTime():java.util.Date to java.util.Date
        // No conversion for target.insurerTime (can't convert source.getInsurerTime():java.util.Date to java.util.Date
    }

}